projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d964e
)
* lisp/generic-x.el (hosts-generic-mode): Support IPv6 addresses.
author
Stefan Kangas
<stefan@marxist.se>
Thu, 28 Jan 2021 16:05:06 +0000
(17:05 +0100)
committer
Stefan Kangas
<stefan@marxist.se>
Thu, 28 Jan 2021 17:24:45 +0000
(18:24 +0100)
lisp/generic-x.el
patch
|
blob
|
history
diff --git
a/lisp/generic-x.el
b/lisp/generic-x.el
index 60cf8468a4e05e1aa141585c21f4be9264d5698a..bd03f287fc7d223d63da6a3008b63c0324b4e876 100644
(file)
--- a/
lisp/generic-x.el
+++ b/
lisp/generic-x.el
@@
-365,7
+365,8
@@
your changes into effect."
(define-generic-mode hosts-generic-mode
'(?#)
'("localhost")
- '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face))
+ '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face)
+ ("\\<\\([0-9A-Fa-f:]+\\)\\>" 1 font-lock-constant-face))
'("[hH][oO][sS][tT][sS]\\'")
nil
"Generic mode for HOSTS files."))